package com.hnnu.shoppingtoghter.demo.mapper;
import org.apache.ibatis.annotations.Mapper;
import com.hnnu.shoppingtoghter.demo.entity.SysUser;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SysUserMapper {
    /**
     * pdy
     * 根据用户账号密码从数据库中查询用户记录
     */
    SysUser selectUser(String userCode, String userPassword);

    /**
     * pdy
     * 将SysUser 对象插入到数据库
     * @param user
     * @return
     */
  int insertUser(SysUser user);

    /**
     * @Description: 修改用户信息
     * @Author: Liu_aihuan
     * @CreateTime: 2022/6/24 16:24
     * @param: user
     * @return: int
     **/
    int updateUser(SysUser user);


    /**
     * @Description: 修改用户密码
     * @Author: Liu_aihuan
     * @CreateTime: 2022/7/6 22:49
     * @param: user
     * @return: int
     **/

    int updateUserPassword(SysUser user);

    /**
     * @Description: 修改图片
     * @Author: Liu_aihuan
     * @CreateTime: 2022/7/8 21:20
     * @param: id
     * @param: headImages
     * @return: int
     **/


    int updateHeadImages(@Param("id") Long id, @Param("headImages") String headImages);

}
